f = open('1.txt','rb').read().splitlines()
import base64

trans = [0.04,0.06,0.05,0.07,0.10,0.15,0.17,0.23,0.22,0.25,0.29,0.20,0.28,0.33,0.35,0.35,0.37]

def decrypt(data:str):
    key = 'cd9d86dd286a0b0079146c1c57e51576'
    x = 0
    data = base64.b64decode(data.encode())
    length = len(data)
    l = len(key)
    char = string = ''
    for i in range(length):
        if(x == l):
            x = 0
        char += key[x]
        x += 1
    for i in range(length):
        string += chr(data[i] - (ord(char[i])) % 256)
    return int(string)

money = 0.0
for i in range(len(f)):
    tmps = f[i].split(b',')
    # print(tmps[-4].decode()[11:13]) #日期
    if(int(tmps[-3].decode()) == 5 and int(tmps[-2].decode()) == 3):
        mon = decrypt(tmps[-1].decode()[2:10])
        money += mon*trans[int(tmps[-4].decode()[10:12])-2]
        print(mon,trans[int(tmps[-4].decode()[10:12])-2])
        # print(tmps)
print(money)
#15758353.760000002
